package pri.ydy.msmservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author YeDongYong
 * @date 2020/12/16 - 16:40
 */
@EnableDiscoveryClient  //Nacos注册
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//不去加载数据库信息
@ComponentScan({"pri.ydy"})//扫描指定位置
public class MsmApplication {
    public static void main(String[] args) {
        SpringApplication.run(MsmApplication.class,args);
    }
}
